{% extends "xfn/admin/admin_base.html" %}

{% block title %}Index of all XFNs{% endblock %}

{% block article %}

    <h1>Index of all XFNs</h1>
    <p><a href="{% url xfn_admin_create %}">New XFN</a></p>
    <h2>Existing XFNs</h2>
    {% if profiles %}
        {% for profile in profiles %}
            <div>
                <a href="{% url xfn_admin_edit profile.slug %}">{{ profile.name }}</a>
                <form action="{% url xfn_admin_delete %}" method="POST">
                    <input type="hidden" name="slug" value="{{ profile.slug }}">
                    <input type="submit" value="Delete">
                </form>
            </div>
        {% endfor %}
    {% else %}
       <p>No XFNs yet.</p>
    {% endif %}
{% endblock %}